package com.xsj.controller;

import com.pll.dto.ResponseDto;
import com.xsj.service.OrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Author 小鹿
 * @Date 2025/6/27 13:38
 */
@RestController
@RequestMapping("/order")
@RequiredArgsConstructor
public class OrderController
{
    private final OrderService orderService;
    @RequestMapping("/getCardByUserIdAndMerchantId")
    public ResponseDto getCardByUserIdAndMerchantId(@RequestParam("userId")Integer userId,@RequestParam("merchantId")Integer merchantId){
        return orderService.getCardByUserIdAndMerchantId(userId,merchantId);
    }
}